#import "Movie.h"

@implementation Movie

-(instancetype)initWithDuration:(NSInteger) duration andTitle:(NSString*) title andImage:(NSString*) imageFile {
    self = [super init];
    if (self) {
        self.duration = duration;
        self.title = title;
        self.imageFile = imageFile;
    }
    return self;
}

-(void)setDuration:(NSInteger)duration {
    if (duration > 0)
        _duration = duration;
}

@end
